<nav class="navbar" role="navigation">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#top-navbar-1">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" style="background:url(${getSite(siteId).logo}) left center no-repeat"
               href="${ctxFrt}" ></a>
            <a class="navbar-brand" style="width:400px;padding-left: 0px;" href="${ctxFrt}">
                <div align="left" class="violet">
                    <h1 style="margin-top: 15px;margin-bottom: 15px;"><b>${getSite(siteId).title}</b></h1>
                </div>
                <div align="left"><h5><i><font color="#C0C0C0">${getSite(siteId).subtitle}</font></i></h5></div>
            </a>
        </div>
        <div class="collapse navbar-collapse" id="top-navbar-1">
            <ul class="nav navbar-nav navbar-right">
                <!-- 主导航栏目 begin -->
                <li class="${(curMainColumnId == '0')?then( 'active', '')}">
                    <a href="${ctxFrt}/${siteId}"><i class="fa fa-home"></i><br>首页</a>
                </li>

                <#list getMainColumnList(siteId) as column>
                    <#if column_index lt themesParamConfig_mainColCount >
                        <!-- 有无子节点 -->
                        <#if column.hasChildren>
                            <!-- 是否当前栏目 -->
                            <li class="dropdown ${(curMainColumnId == column.id) ?then('active', '')}">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-delay="1000">
                                    <i class="${column.image}"></i><br>${column.name}<span class="caret"></span>
                                </a>
                                <ul class="dropdown-menu" role="menu">
                                    <#list getColumnList(siteId,column.id) as subColumn>
                                        <#if subColumn_index lt themesParamConfig_secColCount>
                                            <li>
                                                <!-- 是否存在外部链接 -->
                                                <#if subColumn.href == "">
                                                    <a href="${ctxFrt}/${siteId}/col${preview}-${subColumn.id}${urlSuffix}">${subColumn.name}</a>
                                                <#else >
                                                    <a href="${subColumn.href}" target="_blank">${subColumn.name}</a>
                                                </#if>
                                            </li>
                                        </#if>
                                    </#list>
                                </ul>
                            </li>
                        <#else >
                            <!-- 是否当前栏目 -->
                            <li class=" ${(curMainColumnId == column.id) ?then('active', '')}">
                                <!-- 是否存在外部链接 -->
                                    <#if column.href == "">
                                        <a href="${ctxFrt}/${siteId}/col${preview}-${column.id}${urlSuffix}"><i class="${column.image}"></i><br>${column.name}</a>
                                    <#else >
                                        <a href="${column.href}" target="_blank"><i class="${column.image}"></i><br>${column.name}</a>
                                    </#if>
                            </li>
                        </#if>
                    </#if>
                </#list>
                <!-- 主导航栏目 end-->

            </ul>
        </div>
    </div>
</nav>
